package diaosidadui.test;

public class Sum {
    public static void main(String[] args) {
    int a=10;
    int  b=20;
//        int sum = getSum(a, b);
        System.out.println("和是"+getSum(a,b));
    }
/*    public static int getSum(int a, int b){
        int sum = a+b;
        return sum;
}*/

    public static long getSum(long a, long b){
        long sum = a+b;
        return sum;
}

    public static double getSum(double a, double b){
        double sum = a+b;
        return sum;
}

}
